using System;
using Microsoft.SPOT;

namespace Unosquare.Labs.Drivers.Vizic
{
    public class VizicCircle : VizicSceneObjectBase
    {
        public VizicColor Color { get; set; }

        public VizicCircle(VizicSceneBase scene)
            : base(scene)
        {
            this.Color = VizicColor.Yellow;
            this.Width = 16;
            this.Height = 16;
        }

        public override void Draw()
        {
            Scene.LCD.ForegroundColor = this.Color;
            Scene.LCD.FillBackground = false;
            var radius = (ushort)(this.Width / 2);
            Scene.LCD.DrawCircle((ushort)(this.X + radius), (ushort)(this.Y + radius), (ushort)(radius - 1));
        }
    }
}
